// index.js
Page({
  data:{
    current:'jxuan',
    navTapList:[
      {id:'jxuan',name:'精选'},
      {id:'mobile',name:'手机'},
      {id:'food',name:'食品'},
      {id:'underwaist',name:'内衣'},
      {id:'fresh',name:'生鲜'},
      {id:'muying',name:'母婴'},
    ],
    articleList:{
      mobile:[
        {id:10012,name:'红米手机',detail:'红米note11TPro值得拥有'},
        {id:10013,name:'小米手机',detail:'为发烧而生'},
        {id:10014,name:'华为手机',detail:'国产手机'},
        {id:10015,name:'锤子手机',detail:'你可以相信罗永浩'}
      ],
      food:[
        {id:20015,name:'五谷杂米',detail:'炒香的杂米，炒鸡好次',url:'/detailPackage/img/goods-4.jpg'},
        {id:20016,name:'千丝肉松饼',detail:'生活，总有千丝面肉松',url:'/detailPackage/img/goods-6.jpg'},
        {id:20017,name:'三森蜂蜜',detail:'百花蜂蜜，更甜你',url:'/detailPackage/img/goods-12.jpg'},
        {id:20018,name:'好丽友·派',detail:'交个朋友',url:'/detailPackage/img/goods-16.jpg'},
      ]
    }
  },
  // 切换导航栏
  currentNav(e){
    console.log(e);
    this.setData({
      current:e.currentTarget.dataset.index
    })
  }
})
